package com.itheima.api;

import java.util.Date;

public class DateTest {

    // Date 类
    public static void main(String[] args) {
        demo1();
        demo2();
    }


    public static void demo1() {
        System.out.println(new Date());
    }

    public static void demo2() {
        System.out.println(new Date().getTime());
    }
}
